<?php
// +---------------------------------------------------------------------------+
// | This file is part of the KnowledgebasePublisher package                   |
// | KnowledgebasePublisher - web based knowledgebase publisher tool           |
// |                                                                           |
// | Author:  Evgeny Leontev <eleontev@gmail.com>                              |
// | Copyright (c) 2005 Evgeny Leontev                                         |
// |                                                                           |
// | For the full copyright and license information, please view the LICENSE   |
// | file that was distributed with this source code.                          |
// +---------------------------------------------------------------------------+

if(!is_object(@$controller)) { return; }

$dir = $conf['client_root_dir'] . 'client/inc/' . $this->view_format_value . '/view/';

$entry_id    = (int) $controller->getRequestVar('entry_id');
$category_id = (int) $controller->getRequestVar('category_id');
$view_id     = $controller->getRequestVar('view');
$msg_id      = $controller->getRequestVar('msg');


$rq = &new RequestData($_GET);
$rp = &new RequestData($_POST);


/*
// registered only
$not_private = array('register', 'login', 'password', 'confirm');
if($manager->getSetting('kb_register_access') && !$manager->is_registered) {
	if(!in_array($view_id, $not_private)) {
		$controller->go('login', '', '', 'enter');
	}
}
*/


switch ($view_id) {
case 'print': // ------------------------------
	
/*
	require_once $dir . 'KBClientView_print.php';
	
	$view = new KBClientView_print($controller);
	echo $view->execute($manager);
	exit();
	break;	
*/
	

/*
case 'glossary': // ------------------------------
	
	require_once $dir . 'KBClientView_glossary.php';
	$view = &new KBClientView_glossary($controller);

	break;	
*/
	
	
default: // ------------------------------------
	
	require_once $dir . 'KBClientView_default.php';
	$view = &new KBClientView_default($controller);
}
?>